package com.liwalla.domain;

import javax.persistence.Entity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import org.springframework.roo.addon.entity.RooEntity;
import com.liwalla.domain.Medicine;
import javax.validation.constraints.NotNull;
import javax.persistence.ManyToOne;
import javax.persistence.JoinColumn;
import com.liwalla.domain.Disease;

@Entity
@RooJavaBean
@RooToString
@RooEntity
public class Treatement {

    @NotNull
    @ManyToOne(targetEntity = Medicine.class)
    @JoinColumn
    private Medicine medicine;

    @NotNull
    @ManyToOne(targetEntity = Disease.class)
    @JoinColumn
    private Disease disease;

    private Boolean healed;

    private Boolean continuous;

    private String posology;
}
